﻿@{
    ViewBag.Title = "我的账单";
    Layout = "~/Views/Shared/_MallLayout.cshtml";
    var img_url = ViewBag.img_url;
    var token = ViewBag.token;
}
<body class="page-myBill">
    <!--header end-->
    @*<div class="borderBox">
        <div class="box">
            <div class="top">
                <div class="money">
                    <p class="col-gray2">总可提现资产（元）</p>
                    <div class="fn-pfBold">@decimal.Round(Model.balance, 2)</div>
                </div>
                <div class="usable">
                    <div class="left">
                        <div class="leftBox">
                            <em class="col-gray fn28">可提现</em>
                            <p class="fn32 col-red fn-pfBold">@decimal.Round(Model.deposit, 2) RMB</p>
                        </div>
                    </div>
                    <div class="right">
                        <em class="col-gray fn28">冻结中</em>
                        <p class="fn32 col-red fn-pfBold">@decimal.Round(Model.unconfirmed, 2) RMB</p>
                    </div>
                </div>
            </div>
            <div class="btnBox">
                <a href="javascript:void(0);" class="ui-btn-buy withdraw">提 现</a>
            </div>
        </div>
    </div>*@

    <div class="borderBox">
        <div class="box">
            <div class="top">
                <div class="item">
                    <div class="money">
                        <p class="col-gray2">总可提现资产（元）</p>
                        <div class="fn-pfBold">@decimal.Round(Model.balance, 2)</div>
                    </div>
                    <div class="usable">
                        <div class="left">
                            <div class="leftBox">
                                <em class="col-gray fn28">可提现</em>
                                <p class="fn32 col-red fn-pfBold">@decimal.Round(Model.deposit, 2) RMB</p>
                            </div>
                        </div>
                        <div class="right">
                            <em class="col-gray fn28">冻结中</em>
                            <p class="fn32 col-red fn-pfBold">@decimal.Round(Model.unconfirmed, 2) RMB</p>
                        </div>
                    </div>
                </div>
                <div class="item">
                    <div class="money">
                        <p class="col-gray2">购买课程收益</p>
                        <div class="fn-pfBold">@decimal.Round(token.deposited+token.deposit, 2)</div>
                    </div>
                    <div class="usable">
                        <div class="fn-center">
                            <em class="col-gray fn28">提现中</em>
                            <p class="fn32 col-red fn-pfBold">@decimal.Round(token.depositing, 2) RMB</p>
                        </div>
                    </div>
                </div>
            </div>
            <div class="btnBox">
                <a href="javascript:void(0);" class="ui-btn-buy withdraw">提 现</a>
            </div>
        </div>
    </div>

    <!-- 底部导航 -->
    <div class="lt-footNav">
        <ul>
            <li>
                <a href="@Url.Action("Index","DistributionMall")">
                    <i class="icon-footNav1"></i>
                    <p>首页</p>
                </a>
            </li>
            <li>
                <a href="/MyOrder/SellerOrderList?isOnlyShowDistribution=1">
                    <i class="icon-footNav4"></i>
                    <p>订单</p>
                </a>
            </li>
            <li class="cur">
                <a href="@Url.Action("MyBill","MyBill")">
                    <i class="icon-footNav2"></i>
                    <p>账单</p>
                </a>
            </li>
        </ul>
    </div>


    <script type="text/javascript">
        $('.withdraw').click(function () {
            swal({
                title: "提现功能正在开发中，敬请期待！",
                //text: "您确定取消订单吗？",
                type: "warning",
                showCancelButton: true,
                confirmButtonColor: "",
                confirmButtonText: "确定",
                cancelButtonText: "取消",
                closeOnConfirm: false
                //设置closeOnConfirm: false，下面二次确认按钮被点击后才会关闭模态框
            });

        });
    </script>

    <script type="text/javascript">
        $(function () {
            //防止后退
            var browser = {
                versions: function () {
                    var u = navigator.userAgent, app = navigator.appVersion;
                    return {
                        //移动终端浏览器版本信息
                        trident: u.indexOf('Trident') > -1, //IE内核
                        presto: u.indexOf('Presto') > -1, //opera内核
                        webKit: u.indexOf('AppleWebKit') > -1, //苹果、谷歌内核
                        gecko: u.indexOf('Gecko') > -1 && u.indexOf('KHTML') == -1, //火狐内核
                        mobile: !!u.match(/AppleWebKit.*Mobile.*/), //是否为移动终端
                        ios: !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/), //ios终端
                        android: u.indexOf('Android') > -1 || u.indexOf('Linux') > -1, //android终端或uc浏览器
                        iPhone: u.indexOf('iPhone') > -1, //是否为iPhone或者QQHD浏览器
                        iPad: u.indexOf('iPad') > -1, //是否iPad
                        webApp: u.indexOf('Safari') == -1, //是否web应该程序，没有头部与底部,
                        WeiXin: u.match(/MicroMessenger/i) == "MicroMessenger" //是否为微信客户端
                    };
                }(),
                language: (navigator.browserLanguage || navigator.language).toLowerCase()
            };

           @*//防止页面后退
            history.pushState(null, null, document.URL);
            window.onpopstate = function (e) {
                if (browser.versions.mobile) {
                    //判断是否是移动设备打开。browser代码在下面
                    var ua = navigator.userAgent.toLowerCase();
                    //获取判断用的对象
                    if (ua.match(/MicroMessenger/i) == "micromessenger") { //微信app
                        history.pushState(null, null, document.URL);
                        this.window.location.replace('@Url.Action("Index", "Consumption")');
                    } else {//非微信打开
                        if (/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)) {
                            try {
                                if (isIOSAppNewBrowser != undefined && isIOSAppNewBrowser == true) {
                                    window.webkit.messageHandlers.gohome.postMessage('');
                                } else {
                                    gohome();
                                }
                            }
                            catch (ex) {}
                        }
                        else if (/(Android)/i.test(navigator.userAgent)) {
                                try { androidfuntion.gohome(); }
                                catch (ex) {}
                        }
                    }
                } else {
                    //否则就是PC浏览器打开
                      history.pushState(null, null, document.URL);
                      this.window.location.replace('@Url.Action("Index", "Consumption")');
                }
            }*@
        })
    </script>
</body>